package xyz.zhouzhaodong.crm.mapper;

import xyz.zhouzhaodong.crm.entity.NumberStorage;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 * 类型-编号表 Mapper 接口
 * </p>
 *
 * @author zhouzhaodong
 * @since 2020-06-17
 */
public interface NumberStorageMapper extends BaseMapper<NumberStorage> {

    /**
     * 根据类型查询编号
     * @param type
     * @return
     */
    Integer selectNumber(String type);

    /**
     * 根据类型更新编号
     * @param type
     * @param number
     */
    void updateNumber(String type, int number);

}
